package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.Dept;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;


@Component
@FeignClient(value = "MICROSERVICECLOUD-DEPT-PROVIDER")
public interface PaymentFeignService {


    @GetMapping(value = "/dept/list")
    public List<Dept> list();


}